package com.zxmr.component;

import java.io.IOException;

import com.zxmr.db.DBManager;

public class SystemConstant {

	static DBManager db;
	static String basedir;

	public static boolean initDB()
	{
		db = new DBManager();
		try {
			db.init(SystemConstant.getBasedir()+"component-db-config.xml");
		} catch (IOException e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}

	public static String getBasedir() {
		return basedir;
	}

	public static void setBasedir(String basedir) {
		SystemConstant.basedir = basedir;
	}
	
}
